package com.asj.house.controller;


import com.asj.house.entity.HouseSubscribe;
import com.asj.house.returns.RespTable;
import java.util.List;

import com.asj.house.service.HouseSubscribeService;
import com.asj.house.vo.param.UserParam;
import com.asj.house.vo.result.SubscribeResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 预约表 前端控制器
 * </p>
 *
 * @author asj
 * @since 2021-03-16
 */
@RestController
@RequestMapping("/house-subscribe")
@Slf4j
@Api(value = "预约管理", tags = "预约管理")
public class HouseSubscribeController {

    @Resource
    private HouseSubscribeService houseSubscribeService;

    @GetMapping("/list")
    @ApiOperation(value = "预约列表")
    public RespTable<List<SubscribeResult>> queryAllSubscribe(UserParam userParam) {
        RespTable<List<SubscribeResult>> respTable = houseSubscribeService.listSubscribe(userParam);
        return respTable;
    }

}
